---
title: Autoblocks
description: Manage and use versioned prompts with Autoblocks
---

import { BlockInfoCard } from '@/components/ui/block-info-card'

<BlockInfoCard
  type="autoblocks"
  color="#0D2929"
  icon={true}
  iconSvg={`<svg className="block-icon"
      
      version="1.1"
      id="Layer_1"
      xmlns="http://www.w3.org/2000/svg"
      xmlnsXlink="http://www.w3.org/1999/xlink"
      x="0px"
      y="0px"
      
      viewBox="0 0 1250 1250"
      enableBackground="new 0 0 1250 1250"
      xmlSpace="preserve"
    >
      <path
        fill="#FFFFFF"
        opacity="1.000000"
        stroke="none"
        d="
M671.222290,1079.959839 
	C671.176025,1077.962891 671.089233,1075.965820 671.089111,1073.968872 
	C671.082825,918.318481 671.062683,762.668091 671.192322,607.017761 
	C671.195862,602.748474 669.789551,600.693787 666.180847,598.638306 
	C636.091125,581.500183 606.140991,564.117126 576.145508,546.813599 
	C556.393311,535.419128 536.677856,523.960449 516.869568,512.664307 
	C495.246002,500.332977 473.461487,488.282806 451.883911,475.872253 
	C434.220825,465.713257 416.802856,455.129089 399.195587,444.871857 
	C379.466736,433.378601 359.648438,422.038818 339.866608,410.636597 
	C320.229004,399.317505 300.588470,388.003510 280.948822,376.688019 
	C271.840149,371.440033 262.730530,366.193695 253.057938,360.622070 
	C267.185272,352.478241 280.655273,344.713531 294.125092,336.948517 
	C329.023163,316.830566 363.943237,296.750366 398.783295,276.532349 
	C402.073059,274.623260 404.534790,274.139191 408.118988,276.252319 
	C435.683502,292.503723 463.371948,308.546082 491.084290,324.545258 
	C509.340118,335.084839 527.725525,345.399719 546.006958,355.895203 
	C585.713440,378.690979 625.427124,401.474670 665.069397,424.381744 
	C705.530884,447.762177 745.895203,471.310669 786.336243,494.726715 
	C796.959717,500.877930 807.667236,506.888184 818.432190,512.787903 
	C820.966064,514.176636 821.763611,515.816772 821.762329,518.659241 
	C821.692932,676.145020 821.688171,833.630737 821.793762,991.116455 
	C821.795837,994.184937 820.514771,995.521545 818.222412,996.837891 
	C782.578491,1017.306641 746.954346,1037.809570 711.333679,1058.318848 
	C698.839661,1065.512573 686.367554,1072.744629 673.219116,1079.994141 
	C672.109314,1080.006104 671.665771,1079.982910 671.222290,1079.959839 
z"
      />
      <path
        fill="#FFFFFF"
        opacity="1.000000"
        stroke="none"
        d="
M684.421631,400.605865 
	C600.749390,352.376038 517.388306,304.342010 433.717010,256.129181 
	C455.858643,243.338989 477.724731,230.689346 499.608948,218.071136 
	C526.744324,202.425217 553.916504,186.842911 581.002014,171.111252 
	C583.487793,169.667450 585.282104,169.727783 587.700562,171.126724 
	C627.018250,193.870560 666.389465,216.521790 705.739136,239.210449 
	C744.537903,261.581543 783.343262,283.941437 822.113525,306.361786 
	C854.544006,325.115936 886.886658,344.022156 919.345703,362.726379 
	C945.337769,377.704102 971.415039,392.534851 997.539551,407.280151 
	C1001.126465,409.304749 1002.459045,411.581146 1002.455444,415.839966 
	C1002.322388,571.647339 1002.315430,727.454834 1002.468750,883.262207 
	C1002.473694,888.329590 1001.184082,891.101135 996.646118,893.690186 
	C949.437134,920.624695 902.383667,947.831665 855.284607,974.958862 
	C854.453491,975.437500 853.591980,975.863708 851.884216,976.772095 
	C851.884216,974.236023 851.884216,972.347290 851.884216,970.458557 
	C851.884216,814.817688 851.876099,659.176880 851.927551,503.536011 
	C851.928955,499.372650 851.416870,497.004883 846.802246,494.523651 
	C829.014954,484.959839 811.879517,474.190002 794.417969,464.012421 
	C774.549316,452.431854 754.597900,440.993225 734.670959,429.512817 
	C718.033508,419.927551 701.379517,410.370911 684.421631,400.605865 
z"
      />
      <path
        fill="#FFFFFF"
        opacity="1.000000"
        stroke="none"
        d="
M398.927063,451.754761 
	C400.510162,450.940521 401.764893,450.328430 403.700867,449.383972 
	C403.700867,452.154175 403.700897,454.096252 403.700897,456.038330 
	C403.700897,554.021851 403.720520,652.005371 403.628479,749.988831 
	C403.624847,753.876892 404.584320,756.067810 408.236908,758.155518 
	C451.188324,782.705505 493.996735,807.505737 536.834656,832.254150 
	C575.355164,854.508362 613.866882,876.777893 652.379028,899.046387 
	C658.236328,902.433167 664.075500,905.851257 670.506531,909.594543 
	C660.506226,915.396240 650.958069,920.955383 641.391357,926.482483 
	C602.367798,949.028442 563.293213,971.486938 524.376099,994.215210 
	C520.155334,996.680237 517.203247,996.930176 512.863708,994.408752 
	C454.421143,960.451721 395.851410,926.713562 337.314575,892.918823 
	C319.777893,882.794556 302.245758,872.662292 284.710938,862.534790 
	C274.721008,856.764954 264.759888,850.944214 254.717163,845.267761 
	C252.338959,843.923462 251.216995,842.476929 251.219849,839.499817 
	C251.315567,739.849976 251.312408,640.200073 251.234558,540.550232 
	C251.232254,537.601685 252.346344,536.241150 254.806610,534.827820 
	C302.775909,507.271362 350.680695,479.602600 398.927063,451.754761 
z"
      />
    </svg>`}
/>

{/* MANUAL-CONTENT-START:intro */}
[Autoblocks](https://www.autoblocks.ai/) is a comprehensive platform for managing, monitoring, and optimizing AI applications. It provides robust tools for prompt management that enable teams to collaborate effectively on AI prompts while maintaining version control and type safety.

With Autoblocks, you can:

- **Version and manage prompts**: Track changes, roll back to previous versions, and maintain a history of prompt iterations
- **Collaborate across teams**: Enable product, engineering, and AI teams to work together on prompt development
- **Ensure type safety**: Get autocomplete and validation for prompt variables
- **Monitor prompt performance**: Track metrics and analyze how changes affect outcomes
- **Test prompts**: Compare different versions and evaluate results before deployment

Autoblocks integrates seamlessly with your existing AI workflows in Sim Studio, providing a structured approach to prompt engineering that improves consistency and reduces errors.
{/* MANUAL-CONTENT-END */}

## Usage Instructions

Collaborate on prompts with type safety, autocomplete, and backwards-incompatibility protection. Autoblocks prompt management allows product teams to collaborate while maintaining excellent developer experience.

## Tools

### `autoblocks_prompt_manager`

Manage and render prompts using Autoblocks prompt management system

#### Input

| Parameter         | Type    | Required | Description                                             |
| ----------------- | ------- | -------- | ------------------------------------------------------- |
| `promptId`        | string  | Yes      | The ID of the prompt to retrieve                        |
| `version`         | string  | Yes      | Version strategy \(latest or specific\)                 |
| `specificVersion` | string  | No       | Specific version to use \(e.g.,                         |
| `templateParams`  | object  | No       | Parameters to render the template with                  |
| `apiKey`          | string  | Yes      | Autoblocks API key                                      |
| `enableABTesting` | boolean | No       | Whether to enable A/B testing between versions          |
| `abTestConfig`    | object  | No       | Configuration for A/B testing between versions          |
| `environment`     | string  | Yes      | Environment to use \(production, staging, development\) |

#### Output

| Parameter        | Type   |
| ---------------- | ------ |
| `promptId`       | string |
| `version`        | string |
| `renderedPrompt` | string |
| `templates`      | string |

## Block Configuration

### Input

| Parameter  | Type   | Required | Description                                |
| ---------- | ------ | -------- | ------------------------------------------ |
| `promptId` | string | Yes      | Prompt ID - Enter the Autoblocks prompt ID |

### Outputs

| Output             | Type   | Description                    |
| ------------------ | ------ | ------------------------------ |
| `response`         | object | Output from response           |
| ↳ `promptId`       | string | promptId of the response       |
| ↳ `version`        | string | version of the response        |
| ↳ `renderedPrompt` | string | renderedPrompt of the response |
| ↳ `templates`      | json   | templates of the response      |

## Notes

- Category: `tools`
- Type: `autoblocks`
